home *** CD-ROM | disk | FTP | other *** search
Makefile | 1995-03-21 | 8.4 KB | 256 lines |
- set scanflag=no
- setdos /s0:0
- color bla on bla border bla
- break off
- cls
- echo.
- echo.
- echo.
-
- :vercheck
- if not direxist %fpdir mkdir %fpdir
- set server=%@ext[%@findfirst[%arcdir\new.*]]
- set local=%@ext[%@findfirst[%fpdir\new.*]]
- if %server NE %local gosub update
- set server=
- set local=
-
- :tempcheck
- if not direxist %tempdir mkdir %tempdir
-
- :memscan
- drawbox 0 0 2 79 2 bri yel on blu fill blu
- scrput 1 15 bri bli yel on blu Please Be Patient... Scanning Memory For Viruses
- scrput 24 0 bri bla on bla %title Version %version
- %fpdir\f-prot c:\command.com /silent /old /nopacked /nosub /command /report=%tempdir\vreport.txt
- if ERRORLEVEL NE 0 .and. ERRORLEVEL NE 6 goto virfound
-
- color whi on bla border bla
- cls
- color bla on bla
- iff %1==A: then set drive=a:^set scanflag=exit^goto scanner
- elseiff %1==B: then set drive=b:^set scanflag=exit^goto scanner
- elseiff %1==C: then set drive=c:^set scanflag=exit^goto scanner
- elseiff %1==D: then set drive=d:^set scanflag=exit^goto scanner
- endiff
-
- :mainsc
- drawbox 4 10 12 70 2 bri yel on blu fill blu shadow zoom
- scrput 5 %@eval[39-(%@len[%title]/2)] bri whi on blu %title
- scrput 7 12 whi on blu Place the floppy disk you wish to scan into
- scrput 8 12 whi on blu the drive, then select a drive letter from
- scrput 9 12 whi on blu the list on the right.
- scrput 11 12 whi on blu Select HELP for more info, or QUIT to exit.
- scrput 11 19 bri yel on blu HELP
- scrput 11 42 bri yel on blu QUIT
-
- :dselect
- set drive=.
- beep 1318 2 740 1
- echo A: r B: r C: r HELP r QUIT|set choice=%@select[CON,7,58,13,65,]
- if %@instr[2,1,%choice] == A set drive=A:
- if %@instr[2,1,%choice] == B set drive=B:
- if %@instr[2,1,%choice] == C set drive=C:
- if %@instr[2,1,%choice] == E gosub help
- if %@instr[2,1,%choice] == U goto quit
- if %drive==. goto dselect
- beep 1046 1 1174 1
-
- :scanner
- drawbox 11 27 13 54 2 bri yel on gre fill gre shadow zoom
- scrput 12 28 bri bli yel on gre
- scrput 12 30 bri yel on gre Scanning - Please Wait
- if exist %tempdir\vreport.txt del %tempdir\vreport.txt /yq
- %fpdir\f-prot %drive /nomem /auto /silent /disinf /old /command /report=%tempdir\vreport.txt
- if ERRORLEVEL NE 0 .and. ERRORLEVEL NE 6 .and. ERRORLEVEL NE 8 goto virfound
- if ERRORLEVEL==0 goto novirus
- if ERRORLEVEL==6 goto virclean
-
- :suspfile
- drawbox 13 15 15 64 2 bri yel on red fill red shadow
- scrput 14 17 bri yel on red A suspicious file has been found and reported.
- beep 1046 1 933 1 831 1 784 1
- gosub report
- delay 4
- cls
- if %scanflag==exit goto quit
- goto mainsc
-
- :novirus
- if exist %tempdir\vreport.txt del %tempdir\vreport.txt /yq
- drawbox 12 30 14 50 2 bri whi on cya fill cya shadow
- scrput 13 32 bri whi on cya No viruses found.
- beep 1046 1 1318 1 1046 1
- delay 2
- cls
- if %scanflag==exit goto quit
- goto mainsc
-
- :virclean
- drawbox 13 21 15 59 2 whi on blu fill blu shadow
- scrput 14 23 whi on blu Virus found, removed, and reported.
- beep 1046 1 1318 1 1568 1 1318 1 1046 1
- gosub report
- delay 4
- cls
- if %scanflag==exit goto quit
- goto mainsc
-
- :update
- color bla on bla bord bla
- cls
- drawbox 4 3 7 77 2 bri whi on gre fill gre
- scrput 5 5 bri whi on gre The version of the scanner's files located on your hard disk are out of
- scrput 6 12 bri whi on gre date. They are being automatically updated. Please wait...
- del %fpdir\*.* /yzq
- if %@diskfree[%@substr[%fpdir,0,2],k] LT 1033 goto diskspc
- copy %arcdir\*.* %fpdir\ /qv
- cls
- return
-
- :help
- beep 1046 1 1318 1 1568 1 2093 1
- echo %@select[%vssdir\vsshelp.dat,6,4,24,76,PgUp/PgDn or cursor keys to scroll────────────────ESC exits Help]>NUL
- return
-
- :virfound
- color bri yel on red border red
- cls
- text
-
- A PROBLEM WAS FOUND DURING THE VIRUS SCAN!
-
- During the virus scan, the following error occurred:
-
-
-
-
-
-
-
-
-
-
-
- If you are uncertain of how to deal with this error, please contact
- your computer support personnel as soon as possible, by phone. Leave
- this message on your screen and call right away if you can, as your
- support personnel will likely have specific instructions at this point.
-
- Your system will not allow exiting from this screen without rebooting,
- for your data's safety. If you must reboot right now, please write
- down the particular error above.
-
- endtext
-
- iff ERRORLEVEL==1 then
- scrput 7 7 bri whi on red ABNORMAL PROGRAM TERMINATION:
- scrput 8 8 bri whi on red Any of the following may have occured: an old DOS version (1.x) is
- scrput 9 8 bri whi on red installed on this machine, the virus report file was uncreatable,
- scrput 10 8 bri whi on red scanner files are missing, or there was a scanner file problem.
- elseiff ERRORLEVEL==2 then
- scrput 7 7 bri whi on red SELF TEST FAILED:
- scrput 9 8 bri whi on red The scanner engine has been illegally modified, and failed an
- scrput 10 8 bri whi on red internal integrity check.
- elseiff ERRORLEVEL==3 then
- scrput 7 7 bri whi on red VIRUS FOUND:
- scrput 9 8 bri whi on red An unremovable virus was found on this machine, or a virus which
- scrput 10 8 bri whi on red could not be removed at this moment. Please contact your support
- scrput 11 8 bri whi on red personnel immediately.
- elseiff ERRORLEVEL==4 then
- scrput 7 7 bri whi on red VIRUS FOUND IN MEMORY:
- scrput 9 8 bri whi on red A virus is currently present in memory. This means that either
- scrput 10 8 bri whi on red your machine itself has been infected, or a disk which contained
- scrput 11 8 bri whi on red a virus was used on this machine. Contact support personnel for
- scrput 12 8 bri whi on red further instructions, or to set up a service call.
- elseiff ERRORLEVEL==5 then
- scrput 7 7 bri whi on red SCANNER ILLEGALLY TERMINATED:
- scrput 9 8 bri whi on red A break signal was sent to the scanner. If you did not hit BREAK
- scrput 10 8 bri whi on red then please contact support personnel. If you pressed either
- scrput 11 8 bri whi on red CTRL+C, or CTRL+BREAK, simply reboot and rescan your machine,
- scrput 12 8 bri whi on red without pressing the BREAK key.
- elseiff ERRORLEVEL==7 then
- scrput 7 7 bri whi on red INSUFFICIENT MEMORY TO SCAN:
- scrput 9 8 bri whi on red This machine does not have enough free memory to scan. If you are
- scrput 10 8 bri whi on red running it from inside of another shell, please reboot and run
- scrput 11 8 bri whi on red this virus on your newly booted machine. If not, and you do have
- scrput 12 8 bri whi on red 640 of memory, please contact support personnel.
- endiff
- beep 262 1 311 1 262 1 330 1 262 1 311 1 262 1 330 1
- gosub report
-
- :lockdown
- goto lockdown
-
- :report
- echo ---%_date---%_time---------------------------------------------->>%repdir\summary.txt
- whoami>>%repdir\summary.txt
- type %tempdir\vreport.txt>>%repdir\summary.txt
- echo. >>%repdir\summary.txt
- echo -------------------------------------------------------------------------->>%repdir\summary.txt
- echo. >>%repdir\summary.txt
- delay 3
- return
-
- :userbrk
- color whi on bla
- cls
- echo Someone (must've been you...) hit BREAK!
- echo.
- delay 2
- goto end
-
- :noaspace
- color whi on bla
- cls
- echo This machine does not have enough Alias Space to run a virus scan. Please
- echo contact your support personnel for further instructions on how to correct
- echo this problem.
- echo.
- goto end
-
- :diskspc
- color whi on bla
- cls
- echo This machine does not have enough free disk space to install necessary
- echo files. Please free up some disk space, or contact your support
- echo personnel for more information on how to correct this error.
- echo.
- goto end
-
- :windoze
- color whi on bla
- cls
- echo You have attempted to run this program from under Microsoft Windows,
- echo running in 386 Enhanced mode. This may mean that 32-bit disk access
- echo is enabled.
- echo.
- echo Having 32-bit disk access enabled makes it unsafe to run any sort of
- echo disk repair program under Windows. The scanner cannot be run safely
- echo until you exit Windows.
- echo.
- echo Please exit Windows, and run the scanner from DOS.
- echo.
- delay 6
- goto end
-
- :quit
- color whi on bla border bla
- cls
-
- :end
- beep 1568 1 2093 1
- set title=
- set version=
- set fpdir=
- set vssdir=
- set tempdir=
- set tempdir=
- set drive=
- set choice=
- set repdir=
- set scanflag=
- set arcdir=
- setdos /s10:100
-
-